﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KishOnlineCommone
{
    public class CategoryDTO
    {
        public string EnName { get; set; }
        public int? ID { get; set; }
        public string FaName { get; set; }
        public string EnDSC { get; set; }
        public string FaDSC { get; set; }
        public bool? IsDeleted { get; set; }

    }

    public class WarrantyDTO
    {
        public string SerialNo { get; set; }
        public int? ID { get; set; }
        public string BillNo { get; set; }
        public string Cost { get; set; }
        public string Status { get; set; }
        public bool? IsDeleted { get; set; }

    }

    public class ResultDTO
    {
        public bool? IsSucceed { get; set; }
        public MessageDTO Message { get; set; }
    }

    public class ResultDTO<T>
    {
        public bool? IsSucceed { get; set; }
        public MessageDTO Message { get; set; }
        public T Data { get; set; }
    }
    public class ProductDTO
    {
        public string EnName { get; set; }
        public int? ID { get; set; }
        public string FaName { get; set; }
        public string EnDSC { get; set; }
        public string FaDSC { get; set; }
        public bool? IsDeleted { get; set; }
        public string Price { get; set; }
        public string PhotoPath { get; set; }
        public string CategoryEN { get; set; }
        public string CategoryFA { get; set; }
        public int? CategoryID { get; set; }
        public string AdditionalLink { get; set; }
    }

    public class NewsDTO
    {
        public string EnTitle { get; set; }
        public int? ID { get; set; }
        public string FaTitle { get; set; }
        public string EnDSC { get; set; }
        public string FaDSC { get; set; }
        public bool? IsDeleted { get; set; }
        public string PhotoPath { get; set; }
        public string Category { get; set; }
    }

    public class UserDTO
    {
        public int ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public string Telephone { get; set; }
        public string Address { get; set; }
        public List<RoleTypes> Roles { get; set; }
        public DateTime? DateCreated { get; set; }
        public string strDateCreated { get; set; }
        public bool IsDeleted { get; set; }
        public bool IsActive { get; set; }
    }

    public class MessageDTO
    {
        public int Code;
        public string Message;
        public MessageOwnerType MessageOwnerType;
        public MessageType Type;
    }

    public class ContactMessage
    {
        public string subject { get; set; }
        public string body { get; set; }
        public string senderEmail { get; set; }
        public string to { get; set; }
    }

    public enum MessageType
    {
        Error,
        Event,
        Attention
    }

    public enum MessageOwnerType
    {
        Client,
        Server
    }

    public enum RoleTypes
    {
        Admin = 1,
        Memebr = 2
    }
}